package com.qkjia.day02;

import com.qkjia.day01.SleepUtils;

public class Phone {
    public static synchronized void sendMessage1(){
        SleepUtils.second(4);
        System.out.println("-----发送短信1");
    }
    public static synchronized void sendEmail2(){
        System.out.println("-----发邮件2");
    }
    public synchronized void hello(){
        System.out.println("hello everybody");
    }
}
